#include "inc.h"

FORWARD _PROTOTYPE( void getServerInfo, (struct sockaddr_in) );

PUBLIC int main(void)
{
	int sd,new_sd;
	struct sockaddr_in saddr;
	message m;
	
	while(TRUE){
		initSocket(&sd, saddr);
		accept(sd,(struct sockaddr *)&saddr,(socklen_t *)sizeof(saddr));
		receive(ANY,&m);
	}
	return 0;
}

PRIVATE void getServerInfo(struct sockaddr_in saddr){

	saddr.sin_family = AF_INET;
	
	saddr.sin_port = htons(PORT);

	saddr.sin_addr.s_addr = htonl(INADDR_ANY);
	
}
